package com.hhx.test_library.mvp.contract;

import com.hhx.baselibrary.bean.BaseResponse;
import com.hhx.baselibrary.mvp.BasePresenter;
import com.hhx.baselibrary.mvp.BaseView;

import java.util.HashMap;

import io.reactivex.ObservableTransformer;

/**
 * Created by Administrator on 2018/7/18.
 */

public interface AContract {

    public interface View extends BaseView {

        void refreshSuccess(BaseResponse baseResponse);

        void refreshFailed(String msg);

        <T> ObservableTransformer<T, T> bindLifecycle();
    }

    public abstract class Presenter extends BasePresenter<View> {

        public abstract void login(HashMap<String, Object> map, boolean isDialog, boolean cancelable);

    }

}
